﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.ServiceBus.Model.Models
{
    /// <summary>
    /// 应用
    /// </summary>
    [Table("ESB.Application")]
    public class Application : Root<long>
    {
        public Application() 
        {
            this.Name = "";
            this.Abbr = "";
        }
        /// <summary>
        /// 系统Id
        /// </summary>
        public long AppSystemId { get; set; }
        /// <summary>
        /// 应用编码
        /// </summary>
        public string? Code { get; set; }
        /// <summary>
        /// 应用名称
        /// </summary>
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 应用缩写
        /// </summary>
        public string Abbr { get; set; } = string.Empty;
        /// <summary>
        /// 应用简称
        /// </summary>
        public string? Simplify { get; set; }
        /// <summary>
        /// 签名
        /// </summary>
        public string? Sign { get; set; }
        /// <summary>
        /// 应用Token
        /// </summary>
        public string? AppToken { get; set; }
    }
}
